    <!-- application/layouts/scripts/layout.phtml -->
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <title><?php echo $this->title ?></title>
      <?php echo $this->headLink()->appendStylesheet($this->baseURL().'/media/css/global.css') ?>
      <?php echo $this->headLink()->appendStylesheet($this->baseURL().'/media/css/jquery.countdown.css') ?>
      <style>

          * {
              margin: 0;
          }
          html, body {
              height: 100%;
          }
          .wrapper {
              min-height: 100%;
              height: auto !important;
              height: 100%;
              margin: 0 auto -1.5em;
          }
          .footer{
              height: 1.5em;
              background-color: #3B5998;
              text-align: center;
              padding-top: 5px;;
              color: white;
          }
          .push{
              height: 4em;
          }

          a:link {text-decoration:none;}
          a:visited {color: blue;}
          a:hover {text-decoration:underline;}
          a:active {text-decoration:none;}
      </style>
    </head>
    <body style="margin: 0 auto;">
        <div class="wrapper">
        <div id="header" style="background-color: #3B5998; height: 1em; padding-left:10px; padding-right: 10px;padding-top: 3px;padding-bottom: 3px;">
        <div id="header-logo" style="float: left">
            <a href="<?php echo $this->url(array('controller'=>'student'),'default',true) ?>" style="color: white">Trang chủ &nbsp;</a>
            <a href="<?php echo $this->url(array('controller'=>'about'),'default',true) ?>" style="color: white">Giới thiệu &nbsp;</a>
            <a href="<?php echo $this->url(array('controller'=>'student', 'action' => 'stat'),'default',true) ?>" style="color: white">Thống kê &nbsp;</a>
            <a href="<?php echo $this->url(array('controller'=>'about', 'action' => 'contact'),'default',true) ?>" style="color: white">Liên hệ</a>
        </div>
        <div id="header-navigation" style="float: right">
        <?php if(!is_null($this->student)){ ?>
            <a href="<?php echo ($this->student->priviledge == 1)?$this->url(array('controller'=>'student', 'action'=>'admin'),'default',true):$this->url(array('controller'=>'student', 'action'=>'edit'),'default',true); ?>" style="color: white" ><?php echo $this->student->username ?> &nbsp;</a>
            <a href="<?php echo $this->url(array('controller'=>'student', 'action'=>'logout'),'default',true) ?>" style="color: white" >Đăng xuất</a>
            
        <?php } else { ?>
            <a href="<?php echo $this->url(array('controller'=>'student', 'action'=>'login'),'default',true) ?>" style="color: white" >Đăng nhập &nbsp;</a>
            <a href="<?php echo $this->url(array('controller'=>'student', 'action'=>'register'),'default',true) ?>" style="color: white" >Đăng ký</a>
            
        <?php } ?>
        </div>
        </div>
            <div style="background: #213C75; height: 50px;color: white;padding-left: 20px;padding-top: 10px;">
                <h1>CVgiasu.com</h1>
            </div>
            <div style="margin-left: auto;margin-right: auto;width: 960px;">
                <?php echo $this->layout()->content ?>
            </div>
            <div class="push"></div>
            <div class="push"></div>
        </div>

        <?php echo $this->render('footer.phtml'); ?>
        
</body>
</html>